package com.hjb.service.domain.siteuseraccount;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SiteSysAccountExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SiteSysAccountExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andCurrentAccountIsNull() {
            addCriterion("current_account is null");
            return (Criteria) this;
        }

        public Criteria andCurrentAccountIsNotNull() {
            addCriterion("current_account is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentAccountEqualTo(BigDecimal value) {
            addCriterion("current_account =", value, "currentAccount");
            return (Criteria) this;
        }

        public Criteria andCurrentAccountNotEqualTo(BigDecimal value) {
            addCriterion("current_account <>", value, "currentAccount");
            return (Criteria) this;
        }

        public Criteria andCurrentAccountGreaterThan(BigDecimal value) {
            addCriterion("current_account >", value, "currentAccount");
            return (Criteria) this;
        }

        public Criteria andCurrentAccountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("current_account >=", value, "currentAccount");
            return (Criteria) this;
        }

        public Criteria andCurrentAccountLessThan(BigDecimal value) {
            addCriterion("current_account <", value, "currentAccount");
            return (Criteria) this;
        }

        public Criteria andCurrentAccountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("current_account <=", value, "currentAccount");
            return (Criteria) this;
        }

        public Criteria andCurrentAccountIn(List<BigDecimal> values) {
            addCriterion("current_account in", values, "currentAccount");
            return (Criteria) this;
        }

        public Criteria andCurrentAccountNotIn(List<BigDecimal> values) {
            addCriterion("current_account not in", values, "currentAccount");
            return (Criteria) this;
        }

        public Criteria andCurrentAccountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_account between", value1, value2, "currentAccount");
            return (Criteria) this;
        }

        public Criteria andCurrentAccountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_account not between", value1, value2, "currentAccount");
            return (Criteria) this;
        }

        public Criteria andLastdayCurrentBalIsNull() {
            addCriterion("lastday_current_bal is null");
            return (Criteria) this;
        }

        public Criteria andLastdayCurrentBalIsNotNull() {
            addCriterion("lastday_current_bal is not null");
            return (Criteria) this;
        }

        public Criteria andLastdayCurrentBalEqualTo(BigDecimal value) {
            addCriterion("lastday_current_bal =", value, "lastdayCurrentBal");
            return (Criteria) this;
        }

        public Criteria andLastdayCurrentBalNotEqualTo(BigDecimal value) {
            addCriterion("lastday_current_bal <>", value, "lastdayCurrentBal");
            return (Criteria) this;
        }

        public Criteria andLastdayCurrentBalGreaterThan(BigDecimal value) {
            addCriterion("lastday_current_bal >", value, "lastdayCurrentBal");
            return (Criteria) this;
        }

        public Criteria andLastdayCurrentBalGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("lastday_current_bal >=", value, "lastdayCurrentBal");
            return (Criteria) this;
        }

        public Criteria andLastdayCurrentBalLessThan(BigDecimal value) {
            addCriterion("lastday_current_bal <", value, "lastdayCurrentBal");
            return (Criteria) this;
        }

        public Criteria andLastdayCurrentBalLessThanOrEqualTo(BigDecimal value) {
            addCriterion("lastday_current_bal <=", value, "lastdayCurrentBal");
            return (Criteria) this;
        }

        public Criteria andLastdayCurrentBalIn(List<BigDecimal> values) {
            addCriterion("lastday_current_bal in", values, "lastdayCurrentBal");
            return (Criteria) this;
        }

        public Criteria andLastdayCurrentBalNotIn(List<BigDecimal> values) {
            addCriterion("lastday_current_bal not in", values, "lastdayCurrentBal");
            return (Criteria) this;
        }

        public Criteria andLastdayCurrentBalBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("lastday_current_bal between", value1, value2, "lastdayCurrentBal");
            return (Criteria) this;
        }

        public Criteria andLastdayCurrentBalNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("lastday_current_bal not between", value1, value2, "lastdayCurrentBal");
            return (Criteria) this;
        }

        public Criteria andFrozenAccountIsNull() {
            addCriterion("frozen_account is null");
            return (Criteria) this;
        }

        public Criteria andFrozenAccountIsNotNull() {
            addCriterion("frozen_account is not null");
            return (Criteria) this;
        }

        public Criteria andFrozenAccountEqualTo(BigDecimal value) {
            addCriterion("frozen_account =", value, "frozenAccount");
            return (Criteria) this;
        }

        public Criteria andFrozenAccountNotEqualTo(BigDecimal value) {
            addCriterion("frozen_account <>", value, "frozenAccount");
            return (Criteria) this;
        }

        public Criteria andFrozenAccountGreaterThan(BigDecimal value) {
            addCriterion("frozen_account >", value, "frozenAccount");
            return (Criteria) this;
        }

        public Criteria andFrozenAccountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("frozen_account >=", value, "frozenAccount");
            return (Criteria) this;
        }

        public Criteria andFrozenAccountLessThan(BigDecimal value) {
            addCriterion("frozen_account <", value, "frozenAccount");
            return (Criteria) this;
        }

        public Criteria andFrozenAccountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("frozen_account <=", value, "frozenAccount");
            return (Criteria) this;
        }

        public Criteria andFrozenAccountIn(List<BigDecimal> values) {
            addCriterion("frozen_account in", values, "frozenAccount");
            return (Criteria) this;
        }

        public Criteria andFrozenAccountNotIn(List<BigDecimal> values) {
            addCriterion("frozen_account not in", values, "frozenAccount");
            return (Criteria) this;
        }

        public Criteria andFrozenAccountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("frozen_account between", value1, value2, "frozenAccount");
            return (Criteria) this;
        }

        public Criteria andFrozenAccountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("frozen_account not between", value1, value2, "frozenAccount");
            return (Criteria) this;
        }

        public Criteria andLastdayFrozenBalIsNull() {
            addCriterion("lastday_frozen_bal is null");
            return (Criteria) this;
        }

        public Criteria andLastdayFrozenBalIsNotNull() {
            addCriterion("lastday_frozen_bal is not null");
            return (Criteria) this;
        }

        public Criteria andLastdayFrozenBalEqualTo(BigDecimal value) {
            addCriterion("lastday_frozen_bal =", value, "lastdayFrozenBal");
            return (Criteria) this;
        }

        public Criteria andLastdayFrozenBalNotEqualTo(BigDecimal value) {
            addCriterion("lastday_frozen_bal <>", value, "lastdayFrozenBal");
            return (Criteria) this;
        }

        public Criteria andLastdayFrozenBalGreaterThan(BigDecimal value) {
            addCriterion("lastday_frozen_bal >", value, "lastdayFrozenBal");
            return (Criteria) this;
        }

        public Criteria andLastdayFrozenBalGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("lastday_frozen_bal >=", value, "lastdayFrozenBal");
            return (Criteria) this;
        }

        public Criteria andLastdayFrozenBalLessThan(BigDecimal value) {
            addCriterion("lastday_frozen_bal <", value, "lastdayFrozenBal");
            return (Criteria) this;
        }

        public Criteria andLastdayFrozenBalLessThanOrEqualTo(BigDecimal value) {
            addCriterion("lastday_frozen_bal <=", value, "lastdayFrozenBal");
            return (Criteria) this;
        }

        public Criteria andLastdayFrozenBalIn(List<BigDecimal> values) {
            addCriterion("lastday_frozen_bal in", values, "lastdayFrozenBal");
            return (Criteria) this;
        }

        public Criteria andLastdayFrozenBalNotIn(List<BigDecimal> values) {
            addCriterion("lastday_frozen_bal not in", values, "lastdayFrozenBal");
            return (Criteria) this;
        }

        public Criteria andLastdayFrozenBalBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("lastday_frozen_bal between", value1, value2, "lastdayFrozenBal");
            return (Criteria) this;
        }

        public Criteria andLastdayFrozenBalNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("lastday_frozen_bal not between", value1, value2, "lastdayFrozenBal");
            return (Criteria) this;
        }

        public Criteria andAccountNameIsNull() {
            addCriterion("account_name is null");
            return (Criteria) this;
        }

        public Criteria andAccountNameIsNotNull() {
            addCriterion("account_name is not null");
            return (Criteria) this;
        }

        public Criteria andAccountNameEqualTo(String value) {
            addCriterion("account_name =", value, "accountName");
            return (Criteria) this;
        }

        public Criteria andAccountNameNotEqualTo(String value) {
            addCriterion("account_name <>", value, "accountName");
            return (Criteria) this;
        }

        public Criteria andAccountNameGreaterThan(String value) {
            addCriterion("account_name >", value, "accountName");
            return (Criteria) this;
        }

        public Criteria andAccountNameGreaterThanOrEqualTo(String value) {
            addCriterion("account_name >=", value, "accountName");
            return (Criteria) this;
        }

        public Criteria andAccountNameLessThan(String value) {
            addCriterion("account_name <", value, "accountName");
            return (Criteria) this;
        }

        public Criteria andAccountNameLessThanOrEqualTo(String value) {
            addCriterion("account_name <=", value, "accountName");
            return (Criteria) this;
        }

        public Criteria andAccountNameLike(String value) {
            addCriterion("account_name like", value, "accountName");
            return (Criteria) this;
        }

        public Criteria andAccountNameNotLike(String value) {
            addCriterion("account_name not like", value, "accountName");
            return (Criteria) this;
        }

        public Criteria andAccountNameIn(List<String> values) {
            addCriterion("account_name in", values, "accountName");
            return (Criteria) this;
        }

        public Criteria andAccountNameNotIn(List<String> values) {
            addCriterion("account_name not in", values, "accountName");
            return (Criteria) this;
        }

        public Criteria andAccountNameBetween(String value1, String value2) {
            addCriterion("account_name between", value1, value2, "accountName");
            return (Criteria) this;
        }

        public Criteria andAccountNameNotBetween(String value1, String value2) {
            addCriterion("account_name not between", value1, value2, "accountName");
            return (Criteria) this;
        }

        public Criteria andLastExchangeTimeIsNull() {
            addCriterion("last_exchange_time is null");
            return (Criteria) this;
        }

        public Criteria andLastExchangeTimeIsNotNull() {
            addCriterion("last_exchange_time is not null");
            return (Criteria) this;
        }

        public Criteria andLastExchangeTimeEqualTo(Date value) {
            addCriterion("last_exchange_time =", value, "lastExchangeTime");
            return (Criteria) this;
        }

        public Criteria andLastExchangeTimeNotEqualTo(Date value) {
            addCriterion("last_exchange_time <>", value, "lastExchangeTime");
            return (Criteria) this;
        }

        public Criteria andLastExchangeTimeGreaterThan(Date value) {
            addCriterion("last_exchange_time >", value, "lastExchangeTime");
            return (Criteria) this;
        }

        public Criteria andLastExchangeTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("last_exchange_time >=", value, "lastExchangeTime");
            return (Criteria) this;
        }

        public Criteria andLastExchangeTimeLessThan(Date value) {
            addCriterion("last_exchange_time <", value, "lastExchangeTime");
            return (Criteria) this;
        }

        public Criteria andLastExchangeTimeLessThanOrEqualTo(Date value) {
            addCriterion("last_exchange_time <=", value, "lastExchangeTime");
            return (Criteria) this;
        }

        public Criteria andLastExchangeTimeIn(List<Date> values) {
            addCriterion("last_exchange_time in", values, "lastExchangeTime");
            return (Criteria) this;
        }

        public Criteria andLastExchangeTimeNotIn(List<Date> values) {
            addCriterion("last_exchange_time not in", values, "lastExchangeTime");
            return (Criteria) this;
        }

        public Criteria andLastExchangeTimeBetween(Date value1, Date value2) {
            addCriterion("last_exchange_time between", value1, value2, "lastExchangeTime");
            return (Criteria) this;
        }

        public Criteria andLastExchangeTimeNotBetween(Date value1, Date value2) {
            addCriterion("last_exchange_time not between", value1, value2, "lastExchangeTime");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}